﻿<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6 lte9 lte8 lte7 no-js"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7 lte9 lte8 lte7 no-js"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8 lte9 lte8 no-js"> <![endif]-->
<!--[if IE 9 ]><html class="ie ie9 lte9 no-js"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="notie no-js">
<!--<![endif]-->
<head>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    @Html.Headers()
    @Html.ScriptRefs("jquery.min.js",
    "jquery-ui.min.js",
    "jquery.tmpl.min.js",
    "jquery.farbtastic.mini.js",
    "jquery.validate.min.js",
    "jquery.validate.unobtrusive.min.js",
    "dna/runtime.min.js",
    "dna.djme/djme2.min.js",
    "plugins/ajaxupload.js",
    "plugins/jquery.tools.min.js",
    "modernizr.min.js")
    @RenderSection("HeaderSection", false)
</head>
<body style="border: none;">
    <div id="dna-page-toolbox">
        @Html.Partial("SiteTools")
    </div>
    <div id="dna-page" style="clear: right;">
        @Html.Dna().PageHeader()
        <table id="dna-page-menu" style="width: 100%; border-collapse: collapse;">
            <tr>
                <td style="padding: 0px;">
                    <div class="d-menu-left">
                    </div>
                    @{
                        Ajax.Dna().Menu("SiteMenu")
                               .Options(opts =>
                               {
                                   opts.TopMenuCssClass = "site-menu-topmenu";
                                   opts.TopItemCssClass = "site-menu-topitem";
                                   opts.TopItemHoverCssClass = "site-menu-topitem-hover";
                                   opts.TopItemSelectedCssClass = "site-menu-topitem-selected";
                                   opts.ShowSkateBoard = true;
                               })
                               .DropIcons(icons =>
                               {
                                   icons.TopIconCssClass = "ui-icon ui-icon-triangle-1-s";
                                   icons.IconCssClass = "ui-icon ui-icon-triangle-1-e";
                               })
                            .Bind<HierarchicalNode>(WebSiteContext.Current.SiteMapNodeProvider.RootNode, node =>
                            {
                                if ((node.ParentNode != null) && (node.ParentNode.Key == "0"))
                                {
                                    var curNode = node.Provider.CurrentNode;
                                    if (curNode != null)
                                    {
                                        if ((curNode.Equals(node)) || (curNode.IsDescendantOf(node)))
                                            node.Attributes.Add("class", "site-menu-topitem-selected");
                                    }
                                }

                                if (node.Attributes.ContainsKey("ShowInMenu"))
                                {
                                    if ((bool)node.Attributes["ShowInMenu"])
                                        return node.IsAccessibleToUser();
                                    return false;
                                }
                                return true;
                            }, false)
                            .Render();
                    }
                    <div class="d-menu-right">
                    </div>
                </td>
            </tr>
        </table>
        @{ Ajax.Dna().WidgetZone(Html.Global("RES_TOPBANNER"), "topzone").Render();}
        <div id="dna-page-content">
            <div id="dna-page-sitemap">
                @Ajax.Dna().SiteMapPath(WebSiteContext.Current.SiteMapNodeProvider)
            </div>
            @RenderBody()
        </div>
    </div>
    <div id="dna-page-footer" style="text-align: center;">
        @Html.Copyright(new { style = "margin-top:20px;" })
    </div>
    @Html.StartupScripts()
</body>
</html>
